﻿<%@ Page Title="AddCar" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddCar.aspx.cs" Inherits="CarRental.View.AddCar" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1>Add Car</h1>
    </hgroup>
    <%--<p class="message-info">
           
        </p>

        <p class="validation-summary-errors">
            <asp:Literal runat="server" ID="ErrorMessage" />
        </p>--%>

    <fieldset>
        <legend>Add Car Form</legend>
        <ol>
            <li>
                <asp:Label runat="server" AssociatedControlID="tbCarNo">Car No</asp:Label>
                <asp:TextBox runat="server" ID="tbCarNo" />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbCarNo"
                    CssClass="field-validation-error" ErrorMessage="The Car No is required." />
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="tbCarModel">Car Model</asp:Label>
                <asp:TextBox runat="server" ID="tbCarModel" />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbCarModel"
                    CssClass="field-validation-error" ErrorMessage="The Car Model is required." />
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="tbTonnage">Tonnage</asp:Label>
                <asp:TextBox runat="server" ID="tbTonnage" />
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="ddlDepot">Depot</asp:Label>
                <asp:DropDownList ID="ddlDepot" runat="server" Width="200px" Height="25px"></asp:DropDownList>
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="ddlDrivetrains">Drivetrains</asp:Label>
                <asp:DropDownList ID="ddlDrivetrains" runat="server" Width="200px" Height="25px"></asp:DropDownList>
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="ddlColor">Color</asp:Label>
                <asp:DropDownList ID="ddlColor" runat="server" Width="200px" Height="25px"></asp:DropDownList>
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="ddlCarType">Car Type</asp:Label>
                <asp:DropDownList ID="ddlCarType" runat="server" Width="200px" Height="25px"></asp:DropDownList>
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="cldBuyInDate">Car Buy in Date</asp:Label>
                <asp:Calendar ID="cldBuyInDate" runat="server" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                    <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                    <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                    <OtherMonthDayStyle ForeColor="#999999" />
                    <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                    <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                    <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                    <WeekendDayStyle BackColor="#CCCCFF" />
                </asp:Calendar>
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="tbBuyinCost">Car Buy in Cost</asp:Label>
                <asp:TextBox runat="server" ID="tbBuyinCost" TextMode="Number" />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbBuyinCost"
                    CssClass="field-validation-error" ErrorMessage="The Car Buy in Cost is required." />
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="tbRentPrice">Car rent price</asp:Label>
                <asp:TextBox runat="server" ID="tbRentPrice" TextMode="Number" />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbRentPrice"
                    CssClass="field-validation-error" ErrorMessage="The Car rent price is required." />
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="tbLicense">License No</asp:Label>
                <asp:TextBox runat="server" ID="tbLicense" />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="tbLicense"
                    CssClass="field-validation-error" ErrorMessage="The License No is required." />
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="ddlShop">Shop</asp:Label>
                <asp:DropDownList ID="ddlShop" runat="server" Width="200px" Height="25px"></asp:DropDownList>
            </li>
        </ol>
        <asp:Button runat="server" ID="btnAddCar" Text="Add Car" OnClick="btnAddCar_Click" />
    </fieldset>
</asp:Content>
